/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: SpeedDecorator
 * Author:   zhouheng
 * Date:     2019/5/2 22:21
 * Description: 加急装饰器
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.structure.decorator;

import com.zhouh.patterns.com.zhouh.entity.Bag;

/**
 * 〈一句话功能简述〉<br> 
 * 〈加急装饰器〉
 *
 * @author zhouheng
 * @create 2019/5/2
 * @since 1.0.0
 */
public class SpeedDecorator extends BagDecorator {

    public SpeedDecorator(Bag bag) {
        super(bag);
    }

    @Override
    public void pack(){
        super.pack();
        speedy();
    }

    /**
     * @description: 快件加急
     * @date: 2019/5/2 22:24
     * @author:zhouheng
     */
    public void speedy() {
        System.out.println("------");
        System.out.println("打上加急标识");
    }
}